-- GENERATED SPELL FOR [Andrissa Heartspear] --


function spell0_20385(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15284,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_20385', 670, 1)
end

function spell1_20385(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(15589,pUnit)
pUnit:RegisterEvent('Sorts_20385', 538, 1)
end

function spell2_20385(pUnit, Event) --@Whirlwind,Self--
pUnit:FullCastSpellOnTarget(13736,pUnit)
pUnit:RegisterEvent('Sorts_20385', 2000, 1)
end

function Sorts_20385(pUnit, Event)
local choix_sorts_20385 = math.random(0, 2)
if choix_sorts_20385 == 0 then
pUnit:RegisterEvent('spell0_20385', 1, 1)
end
if choix_sorts_20385 == 1 then
pUnit:RegisterEvent('spell1_20385', 1, 1)
end
if choix_sorts_20385 == 2 then
pUnit:RegisterEvent('spell2_20385', 1, 1)
end
end

function mob20385_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_20385', math.random(1500, 3000), 1)
end

function mob20385_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20385_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob20385_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(20385, 1, 'mob20385_Action')
RegisterUnitEvent(20385, 2, 'mob20385_Leave')
RegisterUnitEvent(20385, 3, 'mob20385_Kill')
RegisterUnitEvent(20385, 4, 'mob20385_Die')
